// Sub.cpp: Nan Dun
#include "Sub.h"

Suba::Suba() : Base()
{
	name->replace(0, 4, "Suba");
}

Suba::~Suba()
{
}

void Suba::print(void)
{
	cout << "Konichiwa from " << *name << ":" << id << " of " \
		 << N << " objects." << endl;
	//cout << base_token << endl;
}

void Suba::printSelf(void)
{
	cout << "*Konichiwa* from " << *name << ":" << id << " of " \
		 << N << " objects." << endl;
}

void Suba::printSelf2(void)
{
	cout << "!Konichiwa! from " << *name << ":" << id << " of " \
		 << N << " objects." << endl;
}

Subb::Subb() : Base()
{
	name->replace(0, 4, "Subb");
}

Subb::~Subb()
{
}

void Subb::print(void)
{
	cout << "Bonjour from " << *name << ":" << id << " of " \
		 << N << " objects." << endl;
}

void Subb::printSelf(void)
{
	cout << "*Bonjour* from " << *name << ":" << id << " of " \
		 << N << " objects." << endl;
}

void Subb::printSelf2(void)
{
	cout << "!Bonjour! from " << *name << ":" << id << " of " \
		 << N << " objects." << endl;
}
